-- GENERATED SPELL FOR [Antilos] --


function spell0_6648(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40505,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6648', 595, 1)
end

function spell1_6648(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13445,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6648', 15000, 1)
end

function spell2_6648(pUnit, Event) --@Swoop,n/a--
pUnit:FullCastSpellOnTarget(5708,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6648', 2317, 1)
end

function Sorts_6648(pUnit, Event)
local choix_sorts_6648 = math.random(0, 2)
if choix_sorts_6648 == 0 then
pUnit:RegisterEvent('spell0_6648', 1, 1)
end
if choix_sorts_6648 == 1 then
pUnit:RegisterEvent('spell1_6648', 1, 1)
end
if choix_sorts_6648 == 2 then
pUnit:RegisterEvent('spell2_6648', 1, 1)
end
end

function mob6648_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6648', math.random(1500, 3000), 1)
end

function mob6648_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6648_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6648_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6648, 1, 'mob6648_Action')
RegisterUnitEvent(6648, 2, 'mob6648_Leave')
RegisterUnitEvent(6648, 3, 'mob6648_Kill')
RegisterUnitEvent(6648, 4, 'mob6648_Die')
